package com.groupseven.happycampus.common.result;

import lombok.Getter;

/**
 * @BeLongsProject: wangrihui
 * @BeLongsPackage: com.wrh.common.result
 * @Author: WRH
 * @CreateTime: 2022-07-22 10:16
 * @Description: TODO
 * @Version: 1.0
 */

@Getter
public enum ResultCodeEnum {
    //枚举值
    SUCCESS(true,"操作成功",200),
    UNKNOWN_REASON(false,"未知错误",999),
    BAD_SQL_GRAMMAR(false,"sql语法错误",520),
    ERROR(false,"操作失败",444),
    ERROR_CAPTCHA(false, "验证码错误",1001),
    ERROR_USERNAME_OR_PASSWORD(false, "用户名或密码错误",1002);

    private Boolean success;
    private String message;
    private Integer code;

    ResultCodeEnum(Boolean success, String message, Integer code) {
        this.success = success;
        this.message = message;
        this.code = code;
    }

}
